import Vue from 'vue';
import uView from 'uview-ui';
import store from '@/store';
import App from './App.vue';

Vue.use(uView);

// eslint-disable-next-line import/order
const vuexStore = require('@/store/$u.mixin');

Vue.mixin(vuexStore);

Vue.config.productionTip = false;

App.mpType = 'app';

const app = new Vue({
  store,
  ...App,
});

// eslint-disable-next-line import/first
import httpInterceptor from './common/http.interceptor';

Vue.use(httpInterceptor, app);

// eslint-disable-next-line import/first
import httpApi from './common/http.api';

Vue.use(httpApi, app);

app.$mount();
